package net.lab1024.sa.admin.module.business.supercomputer.datasource.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.lab1024.sa.admin.module.business.supercomputer.datasource.domain.bo.DataSourceBO;
import net.lab1024.sa.admin.module.business.supercomputer.datasource.domain.entity.DatasourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 数据源 DAO
 */
@Mapper
@Component
public interface DatasourceDao extends BaseMapper<DatasourceEntity> {

    DataSourceBO getById(@Param("dataSourceId") Integer dataSourceId);

    String queryDataSourceType(@Param("dataSourceId") Integer dataSourceId);
}
